using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NL;
using NL.UI;

namespace XGame.UI
{
    public class GMMain : GM
    {
        public PageControl MainPageControl;
        UIHeroPage Win_HeroPage;
        protected override void _INITIAL()
        {
            base._INITIAL();

            MainPageControl?.WaitPageInit((page) =>
            {
                Win_HeroPage = page.gameObject.GetComponent<UIHeroPage>();
                Win_HeroPage?.WaitMyHeroInfoQuery((w)=>
                {
                    return new NLIni($"name=Deooce;level={Random.Range(1,100)}",';') ;
                }).WaitMyHeroPropertyQuery((w)=>
                {
                    return new NLIni($"hp={Random.Range(2000,5000)};att={Random.Range(1000, 2000)};rehp={Random.Range(10,100)}", ';');
                });
              
            });

           
        }

        // Update is called once per frame
        void Update()
        {

        }
    }
}

